package com.xcity.pomelo.response;

import com.xcity.game.task.Task;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class GetDayTaskRewardResponse extends Response{

	int taskId;
	int state;//(0未达到条件 1达到条件未领取  2已领取)
	public GetDayTaskRewardResponse(int serial, Task task) {
		super(serial);
		this.state = task.getState().ordinal();
		this.taskId = task.getId();
	}

	public GetDayTaskRewardResponse(int serial, int state) {
		super(serial);
		this.taskId = -1;
		this.state = state;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getTaskId() {
		return taskId;
	}

	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}
	
}
